package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcPhoneEventAlertMapper;
import com.csun.cmny.provider.model.domain.DmcPhoneEventAlert;
import com.csun.cmny.provider.service.DmcPhoneEventAlertService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-04-01 21:13
 * @Description: the class dmc phone event alert service impl
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DmcPhoneEventAlertServiceImpl extends BaseService<DmcPhoneEventAlert> implements DmcPhoneEventAlertService {

    @Resource
    private DmcPhoneEventAlertMapper dmcPhoneEventAlertMapper;

    /**
     * delete phone event alert by device id
     *
     * @param deviceId device id
     * @return the int.
     */
    @Override
    public Integer deletePhoneEventAlertByDeviceId(Long deviceId) {

        return dmcPhoneEventAlertMapper.deletePhoneEventAlertByDeviceId(deviceId);
    }
}
